package com.rui.study.micro.usermanager.util;

import com.rui.study.commons.model.GlobalStatus;
import lombok.Getter;

@Getter
public enum StatusCode implements GlobalStatus {
    SUCCEED                             ("00000000", "success"),
    SYSTEM_EXCEPTION                    ("USERMGT-99999999", "系统异常"),

    INSERT_EXCEPTION                    ("USERMGT-90010001", "保存数据异常"),
    UPDATE_EXCEPTION                    ("USERMGT-90010005", "更新数据异常"),
    DELETE_EXCEPTION                    ("USERMGT-90010010", "删除数据异常"),

    USERNAME_ALREADY_EXIST              ("USERMGT-90050001", "用户名已存在"),

    ;


    private String status;

    private String message;

    StatusCode(String Status, String message) {
        this.status = Status;
        this.message = message;
    }
}
